{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-3.4.1/css/bootstrap.min.css' %}">
    <link rel="stylesheet" href="{% static 'plugins/font-awesome-4.7.0/css/font-awesome.min.css' %}">
    <style>
        .account {
            width: 600px;
            margin: 0 auto;
        }
    </style>
</head>
<body>
<div class="account">
    <form>
        <h1>注册</h1>
        {% for obj in form %}
            {% if obj.name == 'code' %}
                <div class="form-group">
                <label for="{{ obj.id.for_label }}">{{ obj.label }}</label>
                    <div class="clearfix">
                    <div class="col-md-6 " style="padding-left: 0;">{{ obj }}</div>
                    <div class="col-md-6" style="padding-right: 0;"><button type="submit" class="btn btn-default">点击获取验证码</button></div>
                    </div>
            </div>
            {% else %}
            <div class="form-group">
                <label for="{{ obj.id.for_label }}">{{ obj.label }}</label>
                {{ obj }}
            </div>
            {% endif %}
        {% endfor %}
        <button type="submit" class="btn btn-primary">注册</button>
    </form>
</div>
</body>
</html>